'''
Created on Sep 7, 2012

@author: getsense1
'''
def noDivisiblesPor2y3(x): return x % 2 != 0 and x % 3 != 0

def factorial(x): 
    if x == 1:
        return 1
    return x * factorial(x-1)

def isSorted(numlist, criteria):
    return len(numlist) < 2 or (criteria(numlist[0],numlist[1]) and isSorted(numlist[1:], criteria))
    